package com.frp.protocol;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 错误消息
 */
public class ErrorMessage extends Message {
    @JsonProperty("error")
    private String error;
    
    public ErrorMessage() {
        super(MessageType.Error);
    }
    
    public ErrorMessage(String error) {
        super(MessageType.Error);
        this.error = error;
    }
    
    public String getError() {
        return error;
    }
    
    public void setError(String error) {
        this.error = error;
    }
}